package org.dromara.apartment.domain;

import org.dromara.common.tenant.core.TenantEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serial;

/**
 * 预约看房信息对象 view_appointment
 *
 * @author CKJ
 * @date 2025-06-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("view_appointment")
public class ViewAppointment extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 预约id
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 用户姓名
     */
    private String name;

    /**
     * 用户手机号码
     */
    private String phone;

    /**
     * 公寓ID
     */
    private Long apartmentId;

    /**
     * 房间ID
     */
    private Long roomId;

    /**
     * 预约时间
     */
    private Date appointmentTime;

    /**
     * 备注信息
     */
    private String additionalInfo;

    /**
     * 预约状态（1:待看房，2:已取消，3已看房）
     */
    private Integer appointmentStatus;

    /**
     * 是否删除
     */
    @TableLogic
    private Long delFlag;


}
